package com.seven.restaurant.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.seven.restaurant.entity.po.FoodPO;
import com.seven.restaurant.entity.vo.FoodDetailsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author BaiBan
 * @since 2022-07-18
 */
@Mapper
public interface FoodMapper extends BaseMapper<FoodPO> {

    /**
     * 分页查询
     */
    IPage<FoodDetailsVO> selectDetailsPage(Page<FoodDetailsVO> page, @Param("ew") Wrapper<FoodPO> queryWrapper);
}
